/**
 * 
 */
package com.wsd.dao;

import java.util.Date;
import java.util.List;

import com.wsd.bean.ProductComment;

/**
 * @author TuZiJun
 *
 */
public interface ProductCommentDaoInterface {

	public void save(ProductComment transientInstance);

	public void delete(ProductComment persistentInstance);

	public ProductComment findById(java.lang.Integer id);

	/**
	 * @param order
	 * @param start
	 * @param limit
	 * @return
	 */
	public List<ProductComment> findByExample(ProductComment comment, int start, int limit);

	/**
	 * @param order
	 * @return
	 */
	public int findByExampleCount(ProductComment comment);

	/**
	 * @param id
	 * @param state
	 */
	public void updateState(int id, boolean state);

	/**
	 * @param startDate
	 * @param endDate
	 * @return
	 */
	public int historyCount(Date startDate, Date endDate);

	/**
	 * @param startDate
	 * @param endDate
	 * @param start
	 * @param limit
	 * @return
	 */
	public List<ProductComment> history(Date startDate, Date endDate, int start, int limit);

	/**
	 * @param uid
	 * @return
	 */
	public List<ProductComment> findByStateUid(Integer uid);

	/**
	 * @param pid
	 */
	public void deleteById(int pid);

	/**
	 * @param start
	 * @param limit
	 * @return
	 */
	public List<ProductComment> findAll(int start, int limit);

	/**
	 * @return
	 */
	public int findAllCount();
}
